package com.abel.util;

import com.abel.domain.Application;
import com.abel.domain.Person;
import com.abel.domain.PersonProfile;
import com.abel.domain.types.PersonType;

public class DomainCreator {

	public static Person createPerson(PersonType personType) {

		Person person = new Person();
		Application application = new Application();
		PersonProfile personProfile = new PersonProfile();
		application.setPersonProfile(personProfile);
		person.setPersonType(personType);
		person.setApplication(application);
		return person;
		
	}
	
}
